home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / ftn / perror.z / perror
Encoding:
Text File  |  1998-10-30  |  8.2 KB  |  199 lines

  1.  
  2.  
  3.  
  4. PPPPEEEERRRRRRRROOOORRRR((((3333FFFF))))                                                          PPPPEEEERRRRRRRROOOORRRR((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      perror, gerror, ierrno, strerror - get system error messages
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ppppeeeerrrrrrrroooorrrr ((((ssssttttrrrriiiinnnngggg))))
  13.      cccchhhhaaaarrrraaaacccctttteeeerrrr****((((****)))) ssssttttrrrriiiinnnngggg
  14.  
  15.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ggggeeeerrrrrrrroooorrrr ((((ssssttttrrrriiiinnnngggg))))
  16.      cccchhhhaaaarrrraaaacccctttteeeerrrr****((((****)))) ssssttttrrrriiiinnnngggg
  17.  
  18.      cccchhhhaaaarrrraaaacccctttteeeerrrr****((((****)))) ffffuuuunnnnccccttttiiiioooonnnn ggggeeeerrrrrrrroooorrrr(((())))
  19.  
  20.      ffffuuuunnnnccccttttiiiioooonnnn iiiieeeerrrrrrrrnnnnoooo(((())))
  21.  
  22.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ssssttttrrrreeeerrrrrrrroooorrrr ((((iiiieeeerrrrrrrroooorrrr____nnnnuuuummmm,,,, ssssttttrrrriiiinnnngggg))))
  23.      iiiinnnntttteeeeggggeeeerrrr iiiieeeerrrrrrrroooorrrr____nnnnuuuummmm
  24.      cccchhhhaaaarrrraaaacccctttteeeerrrr****((((****)))) ssssttttrrrriiiinnnngggg
  25.  
  26.  
  27. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  28.      _P_e_r_r_o_r will write a message to fortran logical unit 0 appropriate to the
  29.      last detected system error.  _S_t_r_i_n_g will be written preceding the
  30.      standard error message.
  31.  
  32.      _G_e_r_r_o_r returns the system error message in character variable _s_t_r_i_n_g.
  33.      _G_e_r_r_o_r may be called either as a subroutine or as a function.
  34.  
  35.      _I_e_r_r_n_o will return the error number of the last detected system error.
  36.      This number is updated only when an error actually occurs.  Most routines
  37.      and I/O statements that might generate such errors return an error code
  38.      after the call; that value is a more reliable indicator of what caused
  39.      the error condition.
  40.  
  41.      _S_t_r_e_r_r_o_r is the same as _g_e_r_r_o_r except you pass in an explicit error
  42.      number.
  43.  
  44. FFFFIIIILLLLEEEESSSS
  45.      /usr/lib/libI77.a
  46.  
  47. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  48.      intro(2), perror(3F)
  49.      D. L. Wasley, _I_n_t_r_o_d_u_c_t_i_o_n _t_o _t_h_e _f_7_7 _I/_O _L_i_b_r_a_r_y
  50.  
  51. BBBBUUUUGGGGSSSS
  52.      _S_t_r_i_n_g in the call to _p_e_r_r_o_r can be no longer than 127 characters.
  53.  
  54.      The length of the string returned by _g_e_r_r_o_r and _s_t_r_e_r_r_o_r is determined by
  55.      the calling program.
  56.  
  57.      Error numbers > 100 are mapped to Fortran errors.  Thus you may not be
  58.      able to retrieve the UNIX errors > 100 using these functions.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. PPPPEEEERRRRRRRROOOORRRR((((3333FFFF))))                                                          PPPPEEEERRRRRRRROOOORRRR((((3333FFFF))))
  71.  
  72.  
  73.  
  74. NNNNOOOOTTTTEEEESSSS
  75.      UNIX system error codes are described in _i_n_t_r_o(2).  The f77 I/O error
  76.      codes and their meanings are:
  77.  
  78.           100  ``error in format''
  79.           101  ``out of space for i/o unit table''
  80.           102  ``formatted i/o not allowed''
  81.           103  ``unformatted i/o not allowed''
  82.           104  ``direct i/o not allowed''
  83.           105  ``sequential i/o not allowed''
  84.           106  ``can't backspace file''
  85.           107  ``null file name''
  86.           108  ``can't stat file''
  87.           109  ``file already connected''
  88.           110  ``off end of record''
  89.           111  ``truncation failed in end file''
  90.           112  ``incomprehensible list input''
  91.           113  ``out of free space''
  92.           114  ``unit not connected''
  93.           115  ``read unexpected character''
  94.           116  ``blank logical input field''
  95.           117  ``bad variable type''
  96.           118  ``bad namelist name''
  97.           119  ``variable not in namelist''
  98.           120  ``no end record''
  99.           121  ``namelist subscript out of range''
  100.           122  ``negative repeat count''
  101.           123  ``illegal operation for unit''
  102.           124  ``off beginning of record''
  103.           125  ``no * after repeat count''
  104.           126  ``'new' file exists''
  105.           127  ``can't find 'old' file''
  106.           128  ``unknown system error''
  107.           129  ``requires seek ability''
  108.           130  ``illegal argument''
  109.           131  ``duplicate key value on write''
  110.           132  ``indexed file not open''
  111.           133  ``bad isam argument''
  112.           134  ``bad key description''
  113.           135  ``too many open indexed files''
  114.           136  ``corrupted isam file''
  115.           137  ``isam file not opened for exclusive access''
  116.           138  ``record locked''
  117.           139  ``key already exists''
  118.           140  ``cannot delete primary key''
  119.           141  ``beginning or end of file reached''
  120.           142  ``cannot find requested record''
  121.           143  ``current record not defined''
  122.           144  ``isam file is exclusively locked''
  123.           145  ``filename too long''
  124.           146  ``cannot create lock file''
  125.           147  ``record too long''
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. PPPPEEEERRRRRRRROOOORRRR((((3333FFFF))))                                                          PPPPEEEERRRRRRRROOOORRRR((((3333FFFF))))
  137.  
  138.  
  139.  
  140.           148  ``key structure does not match file structure''
  141.           149  ``direct access on an indexed file not allowed''
  142.           150  ``keyed access on a sequential file not allowed''
  143.           151  ``keyed access on a relative file not allowed''
  144.           152  ``append access on an indexed file not allowed''
  145.           153  ``must specify record length''
  146.           154  ``key field value type does not match key type''
  147.           155  ``character key field value length too long''
  148.           156  ``fixed record on sequential file not allowed''
  149.           157  ``variable records allowed only on unformatted sequential
  150.           file''
  151.           158  ``stream records allowed only on formatted sequential file''
  152.           159  ``maximum number of records in direct access file exceeded''
  153.           160  ``attempt to create or write to a readonly file''
  154.           161  ``must specify key descriptions''
  155.           162  ``carriage control not allowed for unformatted units''
  156.           163  ``indexed files only''
  157.           164  ``cannot use on indexed file''
  158.           165  ``cannot use on indexed or append file''
  159.           166  ``error in closing file''
  160.           167  ``invalid code in format specification''
  161.           168  ``invalid record number in direct access file''
  162.           169  ``cannot have endfile record on non-sequential file''
  163.           170  ``cannot position within current file''
  164.           171  ``cannot have sequential records on direct access file''
  165.           172  ``cannot find namelist in input file''
  166.           173  ``cannot read from stdout''
  167.           174  ``cannot write to stdin''
  168.           175  ``stat call failed in f77inode''
  169.           181  ``Direct unformatted I/O not allowed.''
  170.           182  ``cannot open a directory''
  171.           183  ``subscript out of bounds''
  172.           184  ``function not declared as varargs''
  173.           185  ``internal error'' -- may be due to illegal vararg usage.
  174.  
  175. OOOORRRRIIIIGGGGIIIINNNN
  176.      MIPS Computer Systems
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.